package menu;

import java.util.List;

/**
 * description:
 *
 * @author Yuanml on 2020/10/25 10:51
 */
public class Alice implements Waitress {
    private List<Menu> menus;

    public Alice() {
    }
    public Alice(List<Menu> menus) {
        this.menus = menus;
    }


    @Override
    public void printMenu() {
        menus.forEach(menu -> {
            printMenu(menu.createIterator());
        });
    }

    private void printMenu(Iterator iterator) {
        System.out.println("---------------打印菜单-------------");
        while (iterator.hasNext()) {
            MenuItem next = (MenuItem)iterator.next();
            System.out.println(next);
        }
    }

    @Override
    public void printBreakfastMenu() {

    }

    @Override
    public void printLunchMenu() {

    }

    @Override
    public void printVegetarianMenu() {

    }

    @Override
    public boolean isItemVegetarian(String name) {
        return false;
    }
}
